<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="root">
        <!-- class样式绑定
        1.变量
        2.绑定对象
        3.绑定数组 -->
        <div class="box" :class="{box1:true,box2:true}"></div>
        <div class="box" :class="{obj}">伟大复兴</div>
        <div class="box" :class="{'box1','box2'}">
            <!-- let uname = "张三"
            let obj = {uname} -->
            伟大复兴
        </div>
    </div>
</body>
<script>
    Vue.config.productionTip = false
    let vm = new Vue({
        el:"#root",
        data:{
            obj:{
                box1:true,
                box2:true
            }
        },
        methods: {
            
        },
    })
</script>
</html>